package com.xbongbong.saas.model;

import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.paas.toolbox.wrap.IModel;
import com.xbongbong.pro.domain.entity.ScoreScriptLogEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author chunyang.qin
 * @Title: 评分“重新计算”脚本类
 * @date 2020/11/27 14:58
 */
public interface ScoreScriptLogModel extends IModel<ScoreScriptLogEntity> {
    @Override
    Integer insert(ScoreScriptLogEntity entity) throws XbbException;

    @Override
    Integer update(ScoreScriptLogEntity entity) throws XbbException;

    @Override
    List<ScoreScriptLogEntity> findEntitys(Map<String, Object> param);

    @Override
    Integer getEntitysCount(Map<String, Object> param);

    ScoreScriptLogEntity getByKey(Long key, String corpid);

    ScoreScriptLogEntity getByTriggerDateAndFormId(Long triggerDate,Long formId,String corpid);

    Integer deleteByKey(Long key, String corpid);
}
